package com.sparrow.example_message.base.resp;

import com.baidu.bjf.remoting.protobuf.annotation.Package;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.sparrow.example_message.PacketId;
import com.sparrow.socket.anno.Packet;

import java.util.Map;

@Package("com.sparrow.example_message.proto")
@ProtobufClass(description = "推送属性更新")
@Packet(msgId = PacketId.Base.RESP_ATTR_UPDATE)
public class RespAttrUpdatePacket {
    @Protobuf(description = "变化的属性")
    private Map<Integer, Long> attrMap;
    @Protobuf(description = "战斗力")
    private long fight;

    public Map<Integer, Long> getAttrMap() {
        return attrMap;
    }

    public void setAttrMap(Map<Integer, Long> attrMap) {
        this.attrMap = attrMap;
    }

    public long getFight() {
        return fight;
    }

    public void setFight(long fight) {
        this.fight = fight;
    }
}
